<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
	<head>
		<meta http-equiv="Content-Language" content="zh-cn">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>学生信息</title>
		<link rel="stylesheet" type="text/css" href="<%=basePath%>css/style_admin.css">

		<link href="<%=basePath%>js/calendar/skins/aqua/theme.css"
			rel="stylesheet" />
		<link href="<%=basePath%>js/validate/jquery.validate.css"
			rel="stylesheet" />
		<script type="text/javascript" src="<%=basePath%>js/jquery-1.4.2.js"></script>
		<script type="text/javascript"
			src="<%=basePath%>js/validate/messages_cn.js"></script>
		<script type="text/javascript"
			src="<%=basePath%>js/validate/jquery.validate.js"></script>
		<script type="text/javascript" charset="UTF-8"
			src="<%=basePath%>js/validate/messages_cn.js"></script>
	</head>
	<form name="searchForm" action="getStu_Info!getStudentsByKeywords"
		method="post">
		<select name="searchKey">
			<option value="words">
				关键字查询
			</option>
			<option value="Id">
				按学号查找学生
			</option>
			<option value="Name">
				按姓名查找学生
			</option>
			<option value="Class">
				按班级查找学生
			</option>
			<option value="Insititue">
				按学院查找学生
			</option>
		</select>
		<input name="keyword" type="text" value="" />
		<input type="submit" value="查询" />
	</form>

	<body>
		<form action="changePage" method="post">
			<table cellspacing="1" cellpadding="4" width="100%"
				class="tableborder" id="table3">
				<tr>
					<td colspan="11" class="header">
						<blockquote>
							学生信息
						</blockquote>
					</td>
				</tr>
				<tr>
					<td align="center" class="altbg1">
						<b>ID</b>
					</td>
					<td align="center" class="altbg1">
						<b>姓名</b>
					</td>
					<td align="center" class="altbg1">
						<b>出生年月</b>
					</td>
					<td align="center" class="altbg1">
						<b>入学时间</b>
					</td>
					<td align="center" class="altbg1">
						<b>性别</b>
					</td>
					<td align="center" class="altbg1">
						<b>班级</b>
					</td>
					<td align="center" class="altbg1">
						<b>学院</b>
					</td>
					<td align="center" class="altbg1">
						<b>联系电话</b>
					</td>
					<td align="center" class="altbg1">
						<b>家庭住址</b>
					</td>
					<td align="center" class="altbg1">
						<b>修改</b>
					</td>
				</tr>
				<tr>
					<td>
						<s:if test="studentsList.size==0">没有此记录!</s:if>
					</td>
				</tr>
				<s:iterator value="studentsList">

					<tr>
						<td align="center" class="altbg1">
							<b><s:property value="id" /> </b>
						</td>
						<td align="center" class="altbg1">
							<b><s:property value="stuName" /> </b>
						</td>
						<td align="center" class="altbg1">
							<b><s:property value="birth_date" /> </b>
						</td>
						<td align="center" class="altbg1">
							<b><s:property value="create_date" /> </b>
						</td>
						<td align="center" class="altbg1">
							<b><s:property value="sex" /> </b>
						</td>
						<td align="center" class="altbg1">
							<b><s:property value="classInfo.className" /> </b>
						</td>
						<td align="center" class="altbg1">
							<b><s:property value="classInfo.insititueName" /> </b>
						</td>
						<td align="center" class="altbg1">
							<b><s:property value="tel" /> </b>
						</td>
						<td align="center" class="altbg1">
							<b><s:property value="address" /> </b>
						</td>
						<td align="center" class="altbg1">
							<b><a
								href="updateInfo!getStudentInfoById?uId=<s:property value="id" />">修改</a>
							</b>
						</td>
					</tr>
				</s:iterator>

			</table>
		</form>
</html>
